#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main(){
	int N, i, grade, count = 0;
	int sum = 0;
	double average = 0;
	scanf("%d", &N);
	if (N>0) {
		for (i = 1; i <= N; i++)
		{
			scanf("%d", &grade);
			if (grade >= 60) {
				count++;
			}
			sum = sum + grade;
		}
		average = 1.0*sum / N;
	}
	printf("average = %.1f\n", average);
	printf("count = %d", count);
	return 0;
}